package com.gengzp.rpc.model.remoteTransaction.req;

import java.io.Serial;
import java.io.Serializable;

/**
 * @ClassName RpcRollbackRequest
 * @Description rpc框架回滚请求入参对象
 * @Author gengzp
 * @Date 2025/8/25 14:39
 */
public class RpcRollbackRequest implements Serializable {

    @Serial
    private static final long serialVersionUID = -5091391966822845762L;

    /**
     * 请求唯一标识
     */
    private String requestId;

    /**
     * 接口类名
     */
    private String interfaceName;

    /**
     * 接口方法名
     */
    private String methodName;

    /**
     * 入参对象
     */
    private Object[] args;

    /**
     * 参数类型列表
     */
    private Class<?>[] parameterTypes;

    public String getRequestId() {
        return requestId;
    }

    public void setRequestId(String requestId) {
        this.requestId = requestId;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    public Class<?>[] getParameterTypes() {
        return parameterTypes;
    }

    public void setParameterTypes(Class<?>[] parameterTypes) {
        this.parameterTypes = parameterTypes;
    }

}
